import re
pattern = r"\d+"
str = "我的电话号码10086,nide 10010"

obj = re.compile(pattern)
resp = obj.search(str)
print(resp)
print(resp.group())